﻿using System.Collections.Generic;

namespace DimOS.DimSH
{
    public class Alias
    {
        public string Name { get; set; }

        public string Value { get; set; }

        public Alias(string name, string value)
        {
            Name = name;
            Value = value;
        }

        public static Alias Find(string name, List<Alias> list)
        {
            for (int i = 0; i < list.Count; i++)
                if (list[i].Name == name) return list[i];
            return null;
        }
    }
}
